package com.shiroha.user.pojo;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.shiroha.common.handler.UUIDTypeHandler;
import com.shiroha.user.enums.ApplyStatus;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.UUID;

@Data
@Table(value = "group_application")
public class GroupApplication {

    @Id(keyType = KeyType.Auto)
    private Long id;

    private Long groupId;

    @Column(typeHandler = UUIDTypeHandler.class)
    private UUID userId;

    private ApplyStatus status;

    private String applyReason;

    private LocalDateTime createdAt;
}
